﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="user2.ascx.cs" Inherits="Jungle.User.Controls.New" %>
<%@ Register Assembly="alexconsult" Namespace="Jungle.News.WebControls" TagPrefix="PWC" %>
    <table class="news_body_title">
    <tr>
        <td style="width: 100%;">
            <asp:Label ID="lb_Title" class="news_body_title" runat="server" />
            <asp:HyperLink ID="hp_AllNews" NavigateUrl="~/ru/news.aspx" Text="все новости" style="color: #0071bc; font-size: 14px; padding-left: 20px;" runat="server" />
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="lb_Description" runat="server" />
        </td>
    </tr>
    </table>

<script language="javascript" >
    function Open_Comment(elem, arg)
    {
        var comment_div = document.getElementById(arg);
        if(comment_div.className == "blog_comment_short")
        {
            comment_div.className = "blog_comment_full";
        }
        else
        {
            comment_div.className = "blog_comment_short"
        }
        
        if(elem.src.indexOf("open") != -1)
        {
            elem.src = elem.src.replace(/open/, "close");
        }
        else
        {
            elem.src = elem.src.replace(/close/, "open");
        }

    }

    var agent = navigator.userAgent.toLowerCase();
    if (agent.indexOf('opera') != -1)
    {
        document.write("<link rel='stylesheet' href='../Modules/Blog/opera.css' type='text/css'>")
    }
    else
    {
        if (agent.indexOf('fire') != -1)
        document.write("<link rel='stylesheet' href='../Modules/Blog/opera.css' type='text/css'>")
        else
        {
            document.write("<link rel='stylesheet' href='../Modules/Blog/ie.css' type='text/css'>")
        }
    }

</script>
